package cn.xyf.mzmy.server.utils;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;

public class MailDemo {

    public static void main(String[] args) {
        MailAccount mailAccount = new MailAccount();
        mailAccount.setHost("smtp.163.com");
        mailAccount.setPort(465);
        mailAccount.setSslEnable(true);
        mailAccount.setAuth(true);
        mailAccount.setFrom("13320002604@163.com");
        mailAccount.setUser("13320002604@163.com");
        mailAccount.setPass("MUP4WB9PtVVUFdbL");
        MailUtil.send(mailAccount, CollUtil.newArrayList("468623786@qq.com"), "测试", "邮件来自Hutool测试", false);
    }
}
